package com.coolw.design.pattern.behavior.state;

/**
 * 具体状态B
 *
 * @author coolw
 * @date 2025/4/22 14:45
 */
public class ConcreteStateB extends State {

    @Override
    public void handle(StateContext context) {
        // 状态B处理
        System.out.println("状态B已处理完成......");

        // 设置下一个状态A
        context.setState(new ConcreteStateA());
    }
}
